/**
 * sysRolePermissionDaoHibernate
 *
 * 项目名称:分秒金融
 *
 * @author lunli
 *
 * 功能描述:角色关联资源管理
 * 
 * 历史版本:2017-03-23 v1.0.0 lunli  创建:
 * 
 */
 package com.fmjr.sys.sysRolePermission.dao;

import com.fmjr.common.base.util.Pager;
import com.fmjr.sys.sysRolePermission.bean.SysRolePermission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRolePermissionDao{
	
	public Integer createSysRolePermission(SysRolePermission sysRolePermission);
	public Integer deleteSysRolePermissionById(Long id);
	public Integer updateSysRolePermission(SysRolePermission sysRolePermission);

	public List<SysRolePermission> selectSysRolePermissionAll();

	public SysRolePermission selectSysRolePermissionByT(SysRolePermission sysRolePermission);
	public SysRolePermission selectSysRolePermissionById(Long id);
	
	public List<SysRolePermission> selectSysRolePermissionList(Pager<SysRolePermission> pager);	
	
	public Integer selectSysRolePermissionCount(Pager<SysRolePermission> pager);
	
	public void insertSysRolePermissionBatch(List<SysRolePermission> list);
	public List<SysRolePermission> searchRolePermissionByRoleId(Long roleId);
}
